package com.learn.controller;

import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class HelloController {
    //http://192.168.198.128:4001/
    @RequestMapping("/") //注解提供了路由信息
    public String home() {
        return "Hi,This is com.learn springboot project!";
    }

    //http://192.168.198.128:4001/test
    @GetMapping("/test")
    public String testC() {
        return "I am tester.";
    }
}
